package com.googlecode.scup.parser.actionstates;

import com.googlecode.scup.grammar.grammarspart.Symbol;
import com.googlecode.scup.parser.InputStream;

import java.util.Stack;
import java.util.StringTokenizer;
import java.util.Map;
import java.util.List;

public class GotoAction implements ActionState {
    private int nextState;

	public GotoAction(int state) {
		this.nextState = state;
	}

	@Override
	public ActionStateType getType() {
		return null;
	}

    @Override
    public void doAction(Stack<Symbol> symbolsStack, Stack<Integer> states, InputStream inputStream, List<Map<Symbol, ActionState>> Goto) {
        states.push(nextState);
    }

//	@Override
//	public void doAction() {
//		// TODO Auto-generated method stub
//	}

    @Override
    public String toString() {
        return new String("g " + nextState);
    }
}
